/// id : "1718077270081327152"
/// isDel : 0
/// createBy : "admin"
/// updateBy : null
/// createTime : 1698456516
/// updateTime : 1698456516
/// dictCode : "1718077172307304504"
/// dictSort : 1
/// dictLabel : "打卡一次"
/// dictValue : "1"
/// dictType : "attendance_type"
/// isDefault : "1"
/// status : "0"
/// remark : "签到一次:考勤范围内打卡一次"

class AttendanceTypeDto {
  AttendanceTypeDto({
      String? id, 
      num? isDel, 
      String? createBy, 
      dynamic updateBy, 
      num? createTime, 
      num? updateTime, 
      String? dictCode, 
      num? dictSort, 
      String? dictLabel, 
      String? dictValue, 
      String? dictType, 
      String? isDefault, 
      String? status, 
      String? remark,}){
    _id = id;
    _isDel = isDel;
    _createBy = createBy;
    _updateBy = updateBy;
    _createTime = createTime;
    _updateTime = updateTime;
    _dictCode = dictCode;
    _dictSort = dictSort;
    _dictLabel = dictLabel;
    _dictValue = dictValue;
    _dictType = dictType;
    _isDefault = isDefault;
    _status = status;
    _remark = remark;
}

  AttendanceTypeDto.fromJson(dynamic json) {
    _id = json['id'];
    _isDel = json['isDel'];
    _createBy = json['createBy'];
    _updateBy = json['updateBy'];
    _createTime = json['createTime'];
    _updateTime = json['updateTime'];
    _dictCode = json['dictCode'];
    _dictSort = json['dictSort'];
    _dictLabel = json['dictLabel'];
    _dictValue = json['dictValue'];
    _dictType = json['dictType'];
    _isDefault = json['isDefault'];
    _status = json['status'];
    _remark = json['remark'];
  }
  String? _id;
  num? _isDel;
  String? _createBy;
  dynamic _updateBy;
  num? _createTime;
  num? _updateTime;
  String? _dictCode;
  num? _dictSort;
  String? _dictLabel;
  String? _dictValue;
  String? _dictType;
  String? _isDefault;
  String? _status;
  String? _remark;
AttendanceTypeDto copyWith({  String? id,
  num? isDel,
  String? createBy,
  dynamic updateBy,
  num? createTime,
  num? updateTime,
  String? dictCode,
  num? dictSort,
  String? dictLabel,
  String? dictValue,
  String? dictType,
  String? isDefault,
  String? status,
  String? remark,
}) => AttendanceTypeDto(  id: id ?? _id,
  isDel: isDel ?? _isDel,
  createBy: createBy ?? _createBy,
  updateBy: updateBy ?? _updateBy,
  createTime: createTime ?? _createTime,
  updateTime: updateTime ?? _updateTime,
  dictCode: dictCode ?? _dictCode,
  dictSort: dictSort ?? _dictSort,
  dictLabel: dictLabel ?? _dictLabel,
  dictValue: dictValue ?? _dictValue,
  dictType: dictType ?? _dictType,
  isDefault: isDefault ?? _isDefault,
  status: status ?? _status,
  remark: remark ?? _remark,
);
  String? get id => _id;
  num? get isDel => _isDel;
  String? get createBy => _createBy;
  dynamic get updateBy => _updateBy;
  num? get createTime => _createTime;
  num? get updateTime => _updateTime;
  String? get dictCode => _dictCode;
  num? get dictSort => _dictSort;
  String? get dictLabel => _dictLabel;
  String? get dictValue => _dictValue;
  String? get dictType => _dictType;
  String? get isDefault => _isDefault;
  String? get status => _status;
  String? get remark => _remark;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['id'] = _id;
    map['isDel'] = _isDel;
    map['createBy'] = _createBy;
    map['updateBy'] = _updateBy;
    map['createTime'] = _createTime;
    map['updateTime'] = _updateTime;
    map['dictCode'] = _dictCode;
    map['dictSort'] = _dictSort;
    map['dictLabel'] = _dictLabel;
    map['dictValue'] = _dictValue;
    map['dictType'] = _dictType;
    map['isDefault'] = _isDefault;
    map['status'] = _status;
    map['remark'] = _remark;
    return map;
  }

}